var { Plot } = require("../Plot.js");
//  测试用例 drawNodeSet
// require("rand-lib/sumConservation.rand")
var { sumConservatioRand } = require("arrayHelp/rand-lib/sumConservation.rand.js")
function draw11() {

  var plot = new Plot(document.querySelector("#myCanvas"));
  var a1 = sumConservatioRand(10);
  var a2 = sumConservatioRand(10);
  var nodes = new Array(10).fill(0).map(function (v, k) {
    // return { x: Math.floor(k / 100), y: k % 100 };
    return { x: a1[k] * 500, y: a2[k] * 500 }
  });
  plot.drawNodeSet(nodes);
}
draw11();